<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<volist name="field_list['main']" id="vo" key="key">
    <if condition="$vo['field'] eq 'status_id'">
        <div class="form-group" style="display: none;">
            <label class="col-md-2 control-label">商机状态组：</label>
            <div class="col-md-6">
                <select name="status_type_id" id="type_id" class="form-control">
                    <volist name="type_list" id="vo">
                        <option value="{$vo['id']}">{$vo['name']}</option>
                    </volist>
                </select>
            </div>
            <div class="col-md-2"><span style="color:red;line-height: 32px;margin-left: 10px;">*</span></div>
        </div>
        <div class="form-group" style="display: none;">
            <label class="col-md-2 control-label">商机进度：</label>
            <div class="col-md-6">
                <select name="status_id" id="status_id" class="form-control" >
                    <volist name="status_list" id="vo">
                        <option value="{$vo['status_id']}">{$vo['name']}</option>
                    </volist>
                </select>
            </div>
            <div class="col-md-2"><span style="color:red;line-height: 32px;margin-left: 10px;">*</span></div>
        </div>
        <elseif condition = "$vo['field'] eq 'customer_id'" />
        <div class="form-group" style="display: none;">
            <label class="col-md-2 control-label">客户名称：</label>
            <div class="col-md-6">
                <input type="hidden" name="customer_id" id="customer_id" value="{$business.customer_id}" />
                <input class="form-control required" aria-required="true" placeholder="请点击选择"  type="text" name="customer_name" id="customer_name" value="{$business.customer_name}" readonly="true" style="cursor:pointer;" title="请点击选择"/>
            </div>
            <div class="col-md-2"><span style="color:red;line-height: 32px;margin-left: 10px;">*</span></div>
        </div>
        <elseif condition = "$vo['field'] eq 'contacts_id'" />
        <div class="form-group" style="display: none;">
            <label class="col-md-2 control-label">联系人：</label>
            <div class="col-md-6">
                <input type="hidden" name="contacts_id" id="contacts_id" value="{$business.contacts_id}" />
                <input class="form-control " aria-required="true" placeholder="请点击选择" type="text" name="contacts_name" value="{$business.contacts_name}" id="contacts_name" readonly="true" style="cursor:pointer;" title="请点击选择"/>
            </div>
            <div class="col-md-2"></div>
        </div>
        <div class="form-group" style="display: none;">
            <label class="col-md-2 control-label">商机金额：</label>
            <div class="col-md-6">
                <input class="form-control" type="text" name="final_price" id="business_price" value="" placeholder="0.00" onblur="bu(this)" onkeyup="final_price_sum('business_price');"/>
            </div>
            <div class="col-md-2"></div>
        </div>
        <else />
        <div class="form-group" style="display: none;">
            <label class="col-md-2 control-label">{$vo.name}：</label>
            <if condition="$vo['form_type'] == 'textarea'">
                <if condition = "$vo['tip_start'] eq 1">
                    <div class="col-md-6">
                        {$vo.html}
                    </div>
                    <div class="col-md-2"><span style="color: red;line-height: 32px;margin-left: 10px;">*</span></div>
                    <else/>
                    <div class="col-md-8">
                        {$vo.html}
                    </div>
                </if>
                <elseif condition="$vo['form_type'] == 'address'"/>
                <if condition = "$vo['tip_start'] eq 1">
                    <div class="col-md-7">
                        {$vo.html}
                    </div>
                    <div class="col-md-1"><span style="color: red;line-height: 32px;margin-left: 10px;">*</span></div>
                    <else/>
                    <div class="col-md-8">
                        {$vo.html}
                    </div>
                </if>
                <elseif condition="$vo['form_type'] == 'box'"/>
                <div class="col-md-6">
                    {$vo.html}
                </div>
                <if condition = "$vo['tip_start'] eq 1">
                    <div class="col-md-2"><span style="color: red;line-height: 32px;margin-left: 10px;">*</span></div>
                    <else/>
                    <div class="col-md-2"></div>
                </if>
                <elseif condition="$vo['form_type'] == 'p_box'"/>
                <div class="col-md-6">
                    <select name="possibility" id="possibility" class="form-control">
                        <volist name="possibility_list" key="key1" id="vo">
                            <option value="{$vo}%">{$vo}%</option>
                        </volist>
                    </select>
                </div>
                <div class="col-md-2"></div>
                <elseif condition="$vo['field'] == 'name'"/>
                <div class="col-md-6">
                    <input class="form-control required" id="name" name="name" placeholder="" type="text" value="{$business['name']}" />
                </div>
                <if condition = "$vo['tip_start'] eq 1">
                    <div class="col-md-2"><span style="color: red;line-height: 32px;margin-left: 10px;">*</span></div>
                    <else/>
                    <div class="col-md-2"></div>
                </if>
                <else/>
                <div class="col-md-6">
                    {$vo.html}
                </div>
                <if condition = "$vo['tip_start'] eq 1">
                    <div class="col-md-2"><span style="color: red;line-height: 32px;margin-left: 10px;">*</span></div>
                    <else/>
                    <div class="col-md-2"></div>
                </if>
            </if>
        </div>
    </if>
</volist>

</body>
</html>